using UnityEngine;

[CreateAssetMenu(menuName = "RPG Setup/Item Data/ItemEffect/Restore skill points", fileName = "Item effect data - Restore skill points")]
public class ItemEffect_RestoreSkillPoints : ItemEffect_DataSO
{
    [SerializeField] private int skillPoints = 1;

    public override void ApplyEffect()
    {
        UI uI = FindAnyObjectByType<UI>();
        uI.skillTreeUI.AddSkillPoints(skillPoints);
    }
}
